﻿using DynConDevCorp.OpenArch.SmartData.Core.Metadata;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using System;
using UnitTest.DynConDevCorp.OpenArch.SmartData.Unit_Tests;

namespace UnitTest.DynConDevCorp.OpenArch.SmartData
{


    [TestClass]
    public class MetaDataStore_UnitTests
    {


        private TestContext testContextInstance;

        public TestContext TestContext
        {
            get
            {
                return testContextInstance;
            }
            set
            {
                testContextInstance = value;
            }
        }

        #region Additional test attributes
        // 
        //You can use the following additional attributes as you write your tests:
        //
        //Use ClassInitialize to run code before running the first test in the class
        //[ClassInitialize]
        //public static void MyClassInitialize(TestContext testContext)
        //{
        //}
        //
        //Use ClassCleanup to run code after all tests in a class have run
        //[ClassCleanup]
        //public static void MyClassCleanup()
        //{
        //}
        //
        //Use TestInitialize to run code before running each test
        //[TestInitialize]
        //public void MyTestInitialize()
        //{
        //}
        //
        //Use TestCleanup to run code after each test has run
        //[TestCleanup]
        //public void MyTestCleanup()
        //{
        //}
        //
        #endregion


        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void GetMetaKey_UnitTest()
        {
            Type entityType = typeof (TestSmartEntity);
            string actual = MetaDataStore_Accessor.GetMetaKey(entityType);
            Assert.IsNotNull(actual);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void GetMetaEntity_UnitTest()
        {
            MetaDataStore_Accessor target = new MetaDataStore_Accessor();
            Type entityType = typeof (TestSmartEntity);
            MetaEntity_Accessor actual = target.GetMetaEntity(entityType);
            Assert.IsNotNull(actual);
            Assert.IsNotNull(actual.Target);
        }

        [TestMethod]
        [DeploymentItem("DynConDevCorp.OpenArch.SmartData.Core.dll")]
        public void MetaDataStoreConstructor_UnitTest()
        {
            MetaDataStore_Accessor target = new MetaDataStore_Accessor();
            Assert.IsNotNull(target);
        }
    }
}
